import request from "@/utils/request"

export function storeDetilsList(query){
    return request({
        url: "logistics/Assets/storeDetils/list",
        method: "get",
        params: query
    });
}

export function storeDetilsInfo(id) {
    return request({
        url: "logistics/Assets/storeDetils/info/" + id,
        method: "get"
    });
}

export function storeDetilsAdd(data) {
    console.log("storeDetilsAdd(data): ", data)
    return request({
        url: "logistics/Assets/storeDetils/add",
        method: "post",
        data
    });
}

export function storeDetilsUpdate(id, data) {
    return request({
        url: "logistics/Assets/storeDetils/update/" + id,
        method: "put",
        data: data
    });
}

export function storeDetilsDelete(ids) {
    return request({
        url: "logistics/Assets/storeDetils/deleteByIds/" + ids,
        method: "delete",
    });
}

/**
 * 
 * 搜索教材列表，供选择
 * 
*/
export function teachingMaterialList(query) {
    console.log("query", query);
    return request({
        url: "logistics/Assets/storeDetils/asseList",
        method: "post",
        data: {
            "temaName": query
        }
    });
}

